package test.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by 张少昆 on 2017/12/23.
 */
@Controller
public class IndexController {
    @RequestMapping( "/" ) //看起来覆盖掉了 config.MvcConfig.addViewControllers() 中配置的跳转
    @ResponseBody
    public String index(){
        return "from index";
    }
}
